module.exports = {
  // apps : [{
  //   script: 'index.js',
  //   watch: '.'
  // }, {
  //   script: './service-worker/',
  //   watch: ['./service-worker']
  // }],
  deploy : {
    production : {
      user : 'root',
      host : '42.193.126.150',
      port: '10022',
      ref  : 'origin/master',
      repo : 'git@gitee.com:dyzq-mh_w/books_client.git',
      path : '/www/books_client/production',
      // 'pre-deploy-local': '',
      "pre-deploy": "git fetch --all",
      'post-deploy' : 'npm install --registry=https://registry.npm.taobao.org && rm -rf /www/books_client/production/source/build && npm run build',
      // 'pre-setup': '',
      env: {
        NODE_ENV: "production"
      }
    }
  }
};
